﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASBCC.Workflow.K2Manager
{
    public class GotoActionHandler : ActionHandlerBase
    {
        #region Constructor

        public GotoActionHandler(SerializableDictionary dataFields, K2AppForm appForm, K2WorkItem workItem, K2ActionInfo actionInfo, string comment, K2AuditDestination auditDestination, List<K2User> outputDestinationUsers) :
            base(dataFields, appForm, workItem, actionInfo, comment, auditDestination, outputDestinationUsers)
        {
        }

        #endregion

        #region Override Methods

        protected override void ExcuteAction()
        {
            GotoActivity(WorkItem.ProcInstId);
        }

        protected override string GetActionType()
        {
            return K2ActionType.Goto;
        }

        protected override void BuildProcessStamp()
        {
        }

        protected override void BuildLeadingTime()
        {
        }

        protected override void BuildProcessComment()
        {
        }

        #endregion
    }
}
